import request from '@/utils/request'

// 查询物品工艺路线清单列表
export function listBomRoute(query) {
  return request({
    url: '/mes/bomRoute/list',
    method: 'get',
    params: query
  })
}

// 查询物品工艺路线清单详细
export function getBomRoute(goodsCode) {
  return request({
    url: '/mes/bomRoute/' + goodsCode,
    method: 'get'
  })
}

// 新增物品工艺路线清单
export function addBomRoute(data) {
  return request({
    url: '/mes/bomRoute',
    method: 'post',
    data: data
  })
}

// 修改物品工艺路线清单
export function updateBomRoute(data) {
  return request({
    url: '/mes/bomRoute',
    method: 'put',
    data: data
  })
}

// 删除物品工艺路线清单
export function delBomRoute(goodsCode) {
  return request({
    url: '/mes/bomRoute/' + goodsCode,
    method: 'delete'
  })
}
